<?php defined('SYSPATH') OR die('No direct access allowed.'); ?>
<?php

if (!empty($signin_error))
{
?>
<div id="alerts_content">
  <div id="alerts">
    <ul class="alerts">
      <li class="error" style="">
        <div> <?php echo $signin_error; ?> <span id="close"> <a href="javascript:void(0);">close</a> <a href="javascript:void(0);"> <img alt="" height="14" src="https://secure-assets.grouponcdn.com/images/groupon/icons/close.png?awIalfy2" title="" width="14"> </a> </span> </div>
      </li>
    </ul>
  </div>
</div>
<?php
}
?>
<div class="clearfix" id="main">
  <div id="content">
    <div class="session">
      <div class="box">
        <div class="box_top"></div>
        <div class="box_content clearfix">
          <div class="login">
            <div class="login_header page_header clearfix">
              <h2 class="inline_block">登录</h2>
              <p class="inline_block caption"> or <a href="/users/new">注册</a> </p>
            </div>
            <div class="page_content">
              <form action="login" class="default" id="new_session" method="post">
                <div style="margin:0;padding:0">
                  <input name="authenticity_token" type="hidden" value="yIUu3JUP2tOUDamOBuiR8hlSeZRzwBEZYTyUHz/43l0=">
                </div>
                <div class="container_12 clearfix">
                  <div class="grid_6">
                    <div class="field session_email_address text">
                      <label class="medium" for="session_email_address">邮箱</label>
                      <input class="prompting_field focused grid_5 input prompting" value="<?php echo $email_address; ?>" id="session_email_address" name="email_address" size="30" title="you@domain.com" type="text" autocomplete="off">
                    </div>
                  </div>
                  <div class="grid_6 last">
                    <div class="field session_password password">
                      <label class="medium" for="session_password">密码</label>
                      <input class="grid_5 input" id="session_password" name="password" size="30" type="password">
                      <span class="caption"><a href="/users/forgot_password">忘记密码?</a></span></div>
                  </div>
                </div>
                <div class="field session_remember_me check">
                  <input checked="checked" class="check" id="session_remember_me" name="remember_me" type="checkbox" value="1">
                  <label for="session_remember_me">下次自动登录</label>
                </div>
                <div class="buttons" label="false">
                  <input class="button form_btn login button" id="session_submit" name="commit" type="submit" value="登录">
                </div>
              </form>
            </div>
          </div>
        </div>
        <div class="box_bottom"></div>
      </div>
    </div>
  </div>
</div>

